import java.util.Scanner;

public class main {
    public static void main(String[] args) {
        //写一个函数返回参数二进制中 1 的个数
        int value = 0;
        Scanner scanner = new Scanner(System.in);
        value = scanner.nextInt();
        System.out.println(value + "中二进制中1的个数位:" + fun(value));
    }


    private static int fun(int value) {
        int count = 0;
        while(value != 0)
        {
            if(value % 2 == 1)
                count++;
            value /= 2;
        }
        return count;
    }
}
